<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看我的帖子</title>
</head>
<body>
<br>
   欢迎来到论坛，${username!""}，来看看你一直以来发了哪些帖子！<br>
   <#list myArticle as article> 
  帖子编号：${article.id}&nbsp;&nbsp;发帖人：${article.username}&nbsp;&nbsp;回复的帖子编号：${article.parentId} <br>
  发帖内容：${article.content} <br>
  	</#list>
	
<br>
 <form name="pageForm"  action="/getMyArticle" method="POST">
	  <table>
			<tr>
			
				<!-- <input type="hidden" id="pageNum" name="pageNum" value="" />
				<input type="hidden"  name="pageSize" value="3" /></tr> -->
				
				<td>当前是第${myPageNum!""}页  共${myMaxPage!""}页</td>  
			    <td>到第<input type="text" name="pageNum" value=""  style="width:12px;"/>页</td> 
			    <td><input type="submit" value="跳转" /></td>
			    <!-- <td><input type="submit" name="" value="前一页"onclick="lastpage()" /></td>
			    <td><input type="submit" name="" value="后一页" onclick="nextpage()"/></td> -->
			    
			</tr>
		</table>
     </form>
     
     <td><a href="#" onclick="firstPage();">首页</a>&nbsp;&nbsp; 
	 <a href="#" onclick="nextPage();">下一页</a>&nbsp;&nbsp; 
	 <a href="#" onclick="lastPage();">上一页</a>&nbsp;&nbsp;
	 <a href="#" onclick="finalPage();">尾页</a></td>
	 
	 <script type="text/javascript">
var currentPage=${myPageNum!};
var maxPage=${myMaxPage!};
function lastPage(){
	pageNum=currentPage-1;
	window.location="/getMyArticle?pageNum="+pageNum;
}
function nextPage(){
	var pageNum=currentPage+1;
	window.location="/getMyArticle?pageNum="+pageNum;
}
function finalPage(){
	window.location="/getMyArticle?pageNum="+maxPage;
}
function firstPage(){
	window.location="/getMyArticle?pageNum=1";
}



</script>
	
</body>
</html>